package com.nhom4.ADP;

public class Processor extends Fraction{
	String z1,z2;
	public void tong(Fraction f1, Fraction f2){
		z1 = ""+(f1.numirator*f2.denominator + f1.denominator*f2.numirator);
		z2 = ""+f1.denominator*f2.denominator;
	}	
	public void hieu(Fraction f1, Fraction f2){
		z1 = ""+(f1.numirator*f2.denominator - f2.numirator*f1.denominator);
		z2 =""+ f1.denominator*f2.denominator;
	}	
	public void tich(Fraction f1,Fraction f2){
		z1 = ""+f1.numirator*f2.numirator;
		z2 = ""+f1.denominator*f2.denominator;
	}	
	public void thuong(Fraction f1,Fraction f2){
		z1  =""+  f1.numirator*f2.denominator;
		z2  =""+  f1.denominator*f2.numirator;	
	}	
}
